package com.ln.dm1031.demo03;

/**
 * @author Ln
 * @version 终极版
 * @date 2022/10/31 15:07
 */
public class Test03 {
    public static void main(String[] args) {
        MyTicket myTicket = new MyTicket();

        Thread thread = new Thread(myTicket,"窗口A:");
        Thread thread1 = new Thread(myTicket,"窗口B:");
        Thread thread2 = new Thread(myTicket,"窗口C:");
        Thread thread3 = new Thread(myTicket,"窗口D:");

        thread.start();
        thread1.start();
        thread2.start();
        thread3.start();

    }
}
